package com.example.pageable.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.pageable.entity.WorkOrderEntity;
import com.example.pageable.mapper.WorkOrderMapper;
import com.example.pageable.service.IWorkOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class IWorkOrderServiceImpl extends ServiceImpl<WorkOrderMapper, WorkOrderEntity> implements IWorkOrderService {
    @Autowired
    WorkOrderMapper workOrderMapper;

    @Override
    public List<WorkOrderEntity> selectPageVo(int page, int size, Map<String, Object> params) {
        QueryWrapper<Object> wrapper = new QueryWrapper<>();
        return workOrderMapper.selectPageVo(page * size, params);
    }
}
